package com.oo.polymorphic_4.task;

/**
 * TestJob--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-10 10:47
 **/
public class TestJob extends Job {

    private int testCaseNum;

    private int findBugNum;

    public TestJob(String name, String type, int testCaseNum, int findBugNum) {
        super(name, type);
        this.testCaseNum = testCaseNum;
        this.findBugNum = findBugNum;
    }

    @Override
    protected void intro() {
        System.out.println("工作名称："+this.getName()
        +"\n工作类型："+this.getType()+
        "\n编写测试用例个数："+this.getTestCaseNum()
        +"\n发现的BUG数量："+this.getFindBugNum());
    }

    public int getTestCaseNum() {
        return testCaseNum;
    }

    public void setTestCaseNum(int testCaseNum) {
        this.testCaseNum = testCaseNum;
    }

    public int getFindBugNum() {
        return findBugNum;
    }

    public void setFindBugNum(int findBugNum) {
        this.findBugNum = findBugNum;
    }
}
